package com.syy.spider.dao;

import com.syy.spider.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    User selectUserByNameAndPas(@Param("oldPas") String oldPas, @Param("username") String username);

    void updatePwd(@Param("username") String username, @Param("newPas") String newPas);

    List<User> getAllUsers();

    int updateAut(@Param("id") Integer id, @Param("a") Integer a);

    User selectUserById(@Param("id") int id);

    User selectUserByName(@Param("username") String username);

    int updateByJuBao(@Param("id") Integer id1, @Param("jubao") Integer jubao);

    void updateJuBaoshu(@Param("id") Integer id);
}
